    <div class="centercontent">
    
        <div class="pageheader">
<h1 class="pagetitle">Manajemen Inventaris Barang</h1>

<span class="pagedesc">Informasi daftar inventaris barang</span> 
            
        <ul class="hornav">
        </ul>
        </div><!--pageheader-->
        
        <div id="contentwrapper" class="contentwrapper">
        	
        	<div id="basicform" class="subcontent">
        	  <!--contenttitle-->
        	  <br />
                    
					<div class="contenttitle2">
                        <h3>Form Edit Barang</h3>
                    </div><!--contenttitle-->
                    <div class="tombol_tambah" align="right">   
					<button onclick="location.href='<?php echo base_url().'index.php/pengelolaan_inventaris/'; ?>'" class="stdbtn btn_orange"><< Kembali ke Daftar Inventaris</button>
					</div>
					<form class="stdform stdform2" method="post" action="#" enctype="multipart/form-data">
					<?php 
						if(set_value('kode_barang')!='') $kode_barang = set_value('kode_barang');
						if(set_value('nama_barang')!='') $nama_barang = set_value('nama_barang');
						if(set_value('keterangan')!='') $keterangan = set_value('keterangan');
						if(set_value('kondisi_barang')!='') $kondisi_barang = set_value('kondisi_barang');
						if(set_value('foto_barang')!='') $foto_barang = set_value('foto_barang');
					
						form_open('pengelolaan_inventaris/edit_proses');
					?>
						
						<p>
							<label>Foto Barang</label>
							<span class="field">
								<?php echo '<a href= \'' . base_url().$foto_barang . '\' target="_blank"><img border=\'0\' src=\'' . base_url().$foto_barang . '\' height=\'150\'></a> '; ?>
								<br/>
								<input name="foto_barang" type="file" />
							</span>
						</p>
                    	<p>
                        	<label>Kode Barang</label>
                            <span class="field">
							<input name="kode_barang" id="kode_barang" class="longinput" type="text" value="<?php echo $kode_barang; ?>"/>
							<input type="hidden" name="kode_barang_lama" value="<?php echo $kode_barang; ?>" />
							</span>							
							<?php echo form_error('kode_barang'); ?>
                        </p>
                        
                        <p>
                        	<label>Nama Barang</label>
                            <span class="field"><input name="nama_barang" id="nama_barang" class="longinput" type="text" value="<?php echo $nama_barang; ?>"/>
							</span>
							<?php echo form_error('nama_barang'); ?>
                        </p>
                        
                        <p>
                        	<label>Keterangan</label>
                            <span class="field"><input name="keterangan" id="keterangan" class="longinput" type="text" value="<?php echo $keterangan; ?>"/>
							</span>
							<?php echo form_error('keterangan'); ?>
                        </p>
                        
                        <p>
                        	<label>Kondisi Barang</label>
                            <span class="field">
							<select name="kondisi_barang" id="kondisi_barang">
								<option value="">Pilih Kondisi Barang</option>
								<option value="Baik" <?php if($kondisi_barang == 'Baik'){ echo 'selected';} ?>>Baik</option>
								<option value="Rusak" <?php if($kondisi_barang == 'Rusak'){ echo 'selected';} ?>>Rusak</option>
								<option value="Hilang" <?php if($kondisi_barang == 'Hilang'){ echo 'selected';} ?>>Hilang</option>
							</select>
							</span>
							<?php echo form_error('kondisi_barang'); ?>
                        </p>                        
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2" type="submit">Submit Button</button>
                            <input class="reset radius2" value="Reset Button" type="reset" />
                        </p>
					<?php echo form_close();?>
                    </form>
					
                    <br />

          </div><!--subcontent-->            
            
        </div><!--contentwrapper-->
        
	</div><!-- centercontent -->